package com.yc.lame;

import androidx.appcompat.app.AppCompatActivity;

import android.Manifest;
import android.os.Bundle;
import android.widget.TextView;

import com.yc.yclibx.permissions.YcUtilPermission;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        YcUtilPermission.newInstance(this)
                .addPermissions(YcUtilPermission.PERMISSION_STORAGE)
                .addPermissions(Manifest.permission.RECORD_AUDIO)
                .addPermissions(Manifest.permission.CAMERA)
                .start();
        TextView tv = findViewById(R.id.sample_text);
        tv.setText("aaaaaaaaaaaa");
        tv.setOnClickListener(v -> {
            LameUtil.wavToMp4();
        });
    }


}
